<div id="main-content-plan">
<div id="backgroundplan"> 
    <svg id="svgDrawing" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%"
	 viewBox="0 0 851 731" enable-background="new 0 0 851 731" xml:space="preserve" preserveAspectRatio="xMinYMin meet"
>   
    <!--height="731px" viewBox="0 0 851 731" enable-background="new 0 0 851 731" xml:space="preserve">        -->
        <?php foreach ($this->department as $department ) { ?>         
            <?php foreach ($this->department as $department ) { ?>         
                <?php foreach ($department->Subdepartment as $subdepartment ) { ?>         
                    <g id="departments">
                        <polygon id="<?php echo $department->name?>" fill="<?php echo $department->color?>" points="<?php echo $subdepartment->subdepartmentPoints?>"/>
                    </g>                  
                <?php } ?>    
            <?php } ?>    
        <?php } ?>    
        <?php
            $file1 = "txt/planSVG.txt";
            $f = fopen($file1, "r");
            while ( $line = fgets($f, 1000) ) {
                print $line;
            }
        ?>  
</div>
<img id="bgPlan" src="<?php echo $this->baseUrl(); ?>/assets/plan2.jpg"/>
</div>
<div class="list-wrapper"> 
        <ul>
        <?php foreach ($this->department as $department ) { ?> 
            <li id="">             
                 <a href ="<?php echo $this->baseUrl(); ?>/department/edit/id/<?php echo $department->id ?>" id="<?php echo $department->name?>">
                    <?php echo $department->name?>  
                 </a>
                <svg version="1.1" class="svg-department-color-small" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
                         width="15px" height="15px" viewBox="0 0 15 15" enable-background="new 0 0 15 15" xml:space="preserve">
                <g id="departments-colors">
                    <rect id="<?php echo $department->name?>" width="15" height="15" fill="<?php echo $department->color ?>"/>
                </g>
                </svg>
            </li>                     
        <?php } ?>
        </ul>        
</div>